package com.xiaofeng.pochi.service;

import com.xiaofeng.pochi.common.Page;
import com.xiaofeng.pochi.pojo.ShopProductHistory;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/08/27/22:02
 * @Description:
 */
public interface ShopProductHistoryService {

    /**
     * 保存历史记录
     * */
    void save(ShopProductHistory shopProductHistory);


    /**
     * 清空历史记录
     */
    void clearHistory();

    /**
     * 分页查询
     * */
    Map<String, List<ShopProductHistory>> getByPage(Page<ShopProductHistory> page);
}
